<template>
  <view class="bjys2">
    <view @click="navigateBtn()" class="play_back">
      <image src="@/static/img/play_back.png" mode=""></image>
    </view>
    <view class="title">
      留言卡片
    </view>
    <textarea class="textare" v-model="content" placeholder="允许输入中文以及中文符号" />
    <view class="cube-btn" @click="submitBtn()">
      提交留言
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        content: ''
      }
    },
    methods: {
      navigateBtn() {
        uni.navigateBack();
      },
      submitBtn() {
        if (!this.content) {
          this.$toast('请输入信息');
          return;
        }
        this.$http.fankui({
          id: uni.getStorageSync('token'),
          t: this.content
        }).then(res => {
          if (res.code == 200) {
            this.$toast(res.msg);
            this.content = '';
          }
        })
      },
    },
    onLoad() {

    }
  }
</script>

<style lang="less">
  .bjys2 {
    padding-top: 50rpx;
    padding-bottom: 20rpx;
    height: 130rpx;
    width: 750rpx;
    top: 0;
    position: absolute;
    width: 100%;
    background: linear-gradient(90deg, #bdc3c7, #2c3e50);
    border-bottom-right-radius: 30rpx;
    border-bottom-left-radius: 30rpx;

    .title {
      margin-bottom: 30rpx;
      position: relative;
      font-size: 32rpx;
      text-align: center;
      color: #FFFFFF;

      image {
        position: absolute;
        right: 30rpx;
        width: 40rpx;
        height: 40rpx;
      }
    }
  }

  .dl_title {
    position: absolute;
    color: white;
    font-size: 20px;
    max-width: 414px;
    margin: auto;
    width: 100%;
    text-align: center;
    z-index: 1;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    background: linear-gradient(90deg, #bdc3c7, #2c3e50);
    padding: 15px 0;
  }

  .back {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-image: url(../assets/img/play_back.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 20;
  }

  .card_list {
    width: 94%;
    padding: 70px 3% 0 3%;
  }

  .card-item {
    background-color: white;
    padding: 10px 0 2px 0;
    margin: 10px 0;
    border-radius: 20px;
  }

  .card-left {
    width: 50%;
    margin: auto;
    text-align: center;
    padding: 20px 0;
    color: #435363;
    font-size: 30px;
    font-weight: 900;
  }

  .card-right {
    margin-left: 15px;
    margin-bottom: 10px;
  }

  .card-right span {
    display: flex;
  }

  .cardid p {
    font-size: 16px;
    font-weight: 700;
    color: #d4c23a;
  }

  .cardtime p {
    font-size: 14px;
    padding: 0px 0;
  }

  .cardmoney p {
    font-size: 19px;
    font-weight: 700;
    color: red;
  }

  b {
    font-size: 14px;
    color: #8e98a0;
    letter-spacing: 2.5px;
  }

  p {
    letter-spacing: 1px;
    text-align: center;
  }

  .iconfont {
    margin-left: 5px;
  }

  .buyjlckxq {
    width: 93%;
    margin: 5px 0 5px 15px;
    display: flex;
    border-top: 1px solid #e4e4e4;
  }

  .buycardjl {
    width: 92%;
    margin: 0 auto;
    padding: 5px 0;
  }

  .scroll_content {
    bottom: 47px;
  }

  .cube-btn {
    margin: 20rpx auto;
    width: 80%;
    font-size: 28rpx;
    color: #FFFFFF;
    height: 80rpx;
    line-height: 80rpx;
    background: #4a4c5b;
    border-radius: 20rpx;
    text-align: center;
  }

  .textare {
    margin: 60rpx auto;
    padding: 20rpx;
    width: 90%;
    background-color: white;
    box-sizing: border-box;
  }
</style>
